package com.yeren.BigDecimalDemo;

import java.math.BigInteger;

public class BigIntegerDemo {

	public static void main(String[] args) {
		fun1();
	}

	private static void fun1() {
		BigInteger num1 = new BigInteger("123");
		BigInteger num2 = BigInteger.valueOf(1);
		System.out.println(num1);
		System.out.println(num2);
		/**
		 * 3的阶乘
		 */
		BigInteger num = new BigInteger("1");
		for (int i = 2; i <= 3; i++) {
			num = num.multiply(BigInteger.valueOf(i));
		}

		System.out.println(num);
	}
}
